<?php
class Human
{
  # member varibale
  # can access by all methods of member functions
  # as $this->name;
  public $name='vikas'; # default value of member variable

  # member function
  # set value to object as name
  function setName($name){
    $this->name = $name;
  }
  # member function
  # get value from object as name
  function getName() {
    return $this->name;
  }
}
$obj = new Human;
//$obj->setName("Rasmus");
echo $obj->getName();
